package zdh.jfinabbsapp.util;

import java.util.ArrayList;
import java.util.List;

import zdh.jfinabbsapp.api.dao.Section;
import zdh.jfinabbsapp.api.dao.User;

/**
 * 作者：zdh1000
 * 创建时间： 2015/6/28 21:06
 * 邮箱：wdzdh1000@163.com
 */
public class Session {
    private static List<Section> sectionList;
    //自动更新，默认开启
    private static boolean autoUpdate;

    private static User user;


    static {
        sectionList = new ArrayList<>();
        autoUpdate = true;
        user = new User();
    }


    public static List<Section> getSectionList() {
        return sectionList;
    }

    public static void setSectionList(List<Section> sectionList) {
        Session.sectionList = sectionList;
    }

    public static boolean isAutoUpdate() {
        return autoUpdate;
    }

    public static void setAutoUpdate(boolean autoUpdate) {
        Session.autoUpdate = autoUpdate;
    }

    public static User getUser() {
        return user;
    }

    public static void setUser(User user) {
        Session.user = user;
    }
}
